var as=[];
console.log(as instanceof Array);
console.log(Array.isArray(as));

function createPersonFactory(name,age,sayName){
	var o={};
	o.name=name;
	o.age=age;
	o.sayName=sayName;
	return o;
}
var x=createPersonFactory("john",100,function(){});
var y=createPersonFactory("tom",23);